package com.storm

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryClient
import org.springframework.cloud.openfeign.EnableFeignClients
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity

/**
 * @author xuyp
 * 这里是整个微服务的入口，所以api接口在这里定义
 * 之后才会被分发到各个微服务中
 */
@EnableWebSecurity
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients("com.storm.feign")
class WebRestApplication

fun main(args: Array<String>) {
    runApplication<WebRestApplication>(*args)
}
